package com.zj.base;

import android.support.annotation.LayoutRes;
import android.view.View;

/**
 * Created by zhaojie on 2018/4/10.
 */

public class LayoutModule {

    public LayoutModule(@LayoutRes int layoutId, boolean isShowLoading, boolean isFloatting) {
        this.layout = layoutId;

        this.isShowLoading = isShowLoading;

        this.isFloatting = isFloatting;
    }

    public LayoutModule(@LayoutRes int layoutId) {
        this.layout = layoutId;

        this.isShowLoading = false;

        this.isFloatting = false;
    }

    public LayoutModule(View layoutId, boolean isShowLoading, boolean isFloatting) {
        this.contentView = layoutId;

        this.isShowLoading = isShowLoading;

        this.isFloatting = isFloatting;
    }

    private int layout;

    private View contentView;

    private boolean isShowLoading = true;

    private boolean isFloatting = false;

    public int getLayout() {
        return layout;
    }

    public View getLayoutView() {
        return contentView;
    }

    public boolean isShowLoading() {
        return isShowLoading;
    }

    public boolean isFloatting() {
        return isFloatting;
    }
}
